package com.wzy.zuul;

import com.wzy.zuul.filter.TokenVerifyFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
@EnableDiscoveryClient
public class ZuulService {
    public static void main(String[] args) {
        SpringApplication.run(ZuulService.class, args);
    }

    @Bean
    public TokenVerifyFilter tokenVerifyFilter(){
        return new TokenVerifyFilter();
    }
}
